import axios from '../index'

//货期登录页的图片的api
export const getLogo = () => {
    return axios({
        method: 'get',
        url: '/api/admin/getLoginPic'
    })
}


//获取二维码以及key

export const getCode = () => {
    return axios({
        method: 'get',
        url: '/api/admin/validate/code/get?temp=1667784368'
    })
}

//登录的接口
export const getUserInfo = (account, code, key, pwd, wxCode) => {
    return axios({
        method: 'post',
        url: '/api/admin/login',
        data: {
            account,
            code,
            key,
            pwd,
            wxCode
        }
    })
}